import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex)
import home from './modules/home';
import cart from './modules/cart';
import user from './modules/user';
//对外暴露仓库
const store=new Vuex.Store({
	//合并小的vuex module组件合并到总的store
	modules: {
		cart,
		home,
        user,
	},

})
export default store